<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script type="text/javascript">
/*document.write("appCodeName: " + navigator.appCodeName + "<br/>");
document.write("appName: " + navigator.appName + "<br/>");
document.write("appVersion: " + navigator.appVersion + "<br/>");
document.write("systemLanguage : " + navigator.systemLanguage + "<br/>");
document.write("language: " + navigator.language + "<br/>");
document.write("onLine: " + navigator.onLine + "<br/>");
document.write("cookieEnabled : " + navigator.cookieEnabled + "<br/>");
document.write("platform: " + navigator.platform + "<br/>");
document.write("userAgent: " + navigator.userAgent + "<br/>");
document.write("plugins: " + navigator.plugins + "<br/>");*/

var agent = navigator.userAgent;
if(agent.indexOf("Chrome") != -1){
    document.write("你使用的浏览器是: chrom 浏览器")
} else if(agent.indexOf("Firefox") != -1){
    document.write("你使用的浏览器是: 火狐 浏览器")
} else if (agent.indexOf("AppleWebKit") != -1){
    document.write("你使用的浏览器是: safari 浏览器")
}else{
    document.write("你使用的浏览器是: 其他垃圾浏览器 浏览器")
}

</script>
</body>
</html>